import Vue from "vue";
import Vuex from "vuex";
import Count from "./modules/Count";
import Movie from "./modules/Movie";

//1.应用Vuex
Vue.use(Vuex);

//2.实例化Vuex仓库
const store = new Vuex.Store({
  modules: {
    Count: Count,
    Movie: Movie,
  },
});

//3.暴露store给入口文件
export default store;
